import service from "../utils/request";

//  平台
export function getList(params:any) {
  return service.get(`/platform`, { params });
}
export function createList(data:any) {
  return service.post(`/platform`, data);
}
export function editList(id:number,data:any) {
  return service.put(`/platform/${id}`,data);
}
export function deleteList(id:number) {
  return service.delete(`/platform/${id}`);
}
export function getListDetail(id:number) {
  return service.get(`/platform/${id}`);
}
// export function enable(id:number) {
//   return service.put(`/platform/${id}/enable`);
// }
export function sync(id:number) {
  return service.put(`/platform/${id}/sync`);
}
